package com.swingson.properties.impl;

import com.swingson.SwingsonGui;
import com.swingson.interpreter.Parser;
import com.swingson.jsonparser.JsonElement;
import com.swingson.properties.AnchoredPropertyProcessor;
import javax.swing.JComponent;

/**
 * @author sad
 */
public class MigPropertyProcessor extends AnchoredPropertyProcessor {

    @Override
    protected Object getValue(JsonElement jsonElement, JComponent component, SwingsonGui gui, String propertyName) {
        String value = jsonElement.getAsString();
        component.putClientProperty("mig", value);
        return component;
    }
}
